package com.pine.admin.modules.system.dao;

import java.util.List;
import java.util.Map;

import com.pine.admin.modules.system.entity.SysPermissionEntity;

/**
 * @author Pine
 * @email 771190883@qq.com
 * @date 2018-06-21 13:55:06
 */
public interface SysPermissionDao {

    int deleteByPrimaryKey(Integer id);

    int insertSelective(SysPermissionEntity record);

    SysPermissionEntity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysPermissionEntity record);

    List<SysPermissionEntity> queryAllSysPermission(SysPermissionEntity record);

    List<SysPermissionEntity> querySysPermissionsByPage(Map<String, Object> parameter);

    int delete(Integer id);

    SysPermissionEntity querySysPermission(SysPermissionEntity record);

    //根据用户id查询菜单
    List<SysPermissionEntity> findMenuListByUserId(Integer userId);

    //根据用户id查询权限URL
    List<SysPermissionEntity> findPermissionListByUserId(Integer userId);

}
